home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <html><head><title>Int Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03080502"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
-
- p.P1{
- }
- p.P2{
- }
- span.T1{
- font-weight:bold;}
- </style></head><body>
-
-
- <help:to-be-embedded Eid="int" xmlns:help="http://openoffice.org/2000/help">
- <p class="Head1"><help:link Id="66593">Int Function [Runtime]</help:link></p>
- <p class="Paragraph">Returns the integer portion of a number.</p>
- </help:to-be-embedded>
- <p class="Paragraph"><span class="T1">Syntax</span>:</p>
- <p class="Paragraph">Int (Number) <help:key-word value="Int" tag="kw66593_1" xmlns:help="http://openoffice.org/2000/help"/></p>
- <p class="Paragraph"><span class="T1">Return value</span>:</p>
- <p class="Paragraph">Double</p>
- <p class="Paragraph"><span class="T1">Parameter</span>:</p>
- <p class="Paragraph">Number: Any valid numeric expression. Rounds the fractional part of the number and returns the integer value.</p>
- <p class="P2">Example:</p>
- <p class="PropText">sub ExampleINT</p>
- <p class="PropText">Print Int(3.14159) REM returns the value 3.</p>
- <p class="PropText">Print Int(0) REM returns the value 0.</p>
- <p class="PropText">Print Int(-3.14159) REM returns the value -4.</p>
- <p class="PropText">end sub</p>
- </body></html>